package com.example.communist_app_api.service;

import com.example.communist_app_api.db.pojoDto.Role;

import java.util.ArrayList;
import java.util.List;

public interface UserRoleService {
    ArrayList<Integer>  getRoleIdByUserId(Integer userId);

    int assignRole(Integer userId, Integer roleId);

    List<Role> getRoleByUserId(Integer userId );

    Integer updateUserRole(Integer userId ,Integer roleId);

    Boolean deleteUserRoleByUserId(int userId, Integer roleId);

    Integer insertUserRole(int userId, Integer chineseCommunistPartyMembersRoleId);

    void deleteUserRoleByRoleIdUnionUserOrganization(Integer commissaryInChargeOfPublicityRoleId, Integer commissaryInChargeOfOrganizationRoleId,Integer organization);

    void updateUserRoleByUserList(List<Integer> userIdList,Integer VisitorId);

}
